﻿using System.Collections.Generic;
using XCore.Authorization;

namespace SaaS.Model.Dto.Auths
{
    public struct PermissionModel
    {
        public PermissionModel(IReadOnlyList<PermissionChildren> permissions)
        {
            this.Permissions = permissions;
            this.Menus = null;
        }
        public PermissionModel(IReadOnlyList<PermissionChildren> permissions, IReadOnlyList<PermissionChildren> menus)
        {
            this.Permissions = permissions;
            this.Menus = menus;
        }
        /// <summary>
        /// 功能权限
        /// </summary>
        public IReadOnlyList<PermissionChildren> Permissions;
        /// <summary>
        /// 菜单权限
        /// </summary>
        public IReadOnlyList<PermissionChildren> Menus;
    }
}
